#define _CRT_SECURE_NO_WARNINGS

int removeElement(int* nums, int numSize, int val)
{
	int numSize;
	int slow = 0;
	for (int fast = 0; fast < numSize; fast++)
	{
		if (nums[fast] != val)
		{
			nums[slow++] = nums[fast];
		}
	}
	return slow;
}